package com.muqi.app.qlearn.student;

import android.annotation.SuppressLint;
import android.content.pm.ActivityInfo;
import android.os.Build;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;

import com.easemob.easeui.ui.EaseBaseActivity;
import com.muqi.app.project.contants.MContants;
import com.muqi.app.sharepreference.SharePreferenceUtil;

public class BaseChatActivity extends EaseBaseActivity{
	/** user登录配置 */
	public SharePreferenceUtil mSpUtil;
	
	@SuppressLint("InlinedApi") @Override
    protected void onCreate(Bundle arg0) {
        super.onCreate(arg0);
        setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);// 默认为竖屏
        mSpUtil = new SharePreferenceUtil(this, MContants.UserLogin);
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
//		    Window window = getWindow();
//		    // Translucent status bar
//		    window.setFlags(
//		        WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS,
//		        WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
		    // Translucent navigation bar
//		    window.setFlags(
//		        WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION,
//		        WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION);
		}
    }
	
}
